package org.qphoto;

import java.io.File;
import java.io.IOException;

import android.app.Activity; 
import android.content.Intent; 
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.media.MediaRecorder;
import android.os.Bundle; 
import android.os.Environment;
import android.os.Handler; 
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.view.WindowManager;
  
public class TextMoodActivity extends Activity {    
	private Button m_SendBtn;
	private Button m_CancelBtn;
	private EditText m_Text;
  
    @Override 
    public void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.mood_text);
        
        m_SendBtn = (Button) findViewById(R.id.button2);
        m_CancelBtn = (Button) findViewById(R.id.button1);
        m_Text      = (EditText)findViewById(R.id.editText1);
        
        m_SendBtn.setOnClickListener( new OnClickListener(){
        	@Override
        	public void onClick(View v) {
        	// TODO Auto-generated method stub
        		// copy file
        		Bundle bundle = new Bundle();
                bundle.putInt("type",3);
        		bundle.putString("content",m_Text.getText().toString());
        		
        		Intent showNextPage_Intent=new Intent();
        		showNextPage_Intent.putExtras(bundle); 
        		showNextPage_Intent.setClass(TextMoodActivity.this,SendDialog.class);
        		startActivity(showNextPage_Intent);
        	}
        	}); 

        m_CancelBtn.setOnClickListener( new OnClickListener(){
        	@Override
        	public void onClick(View v) {
        	// TODO Auto-generated method stub
        		TextMoodActivity.this.finish();
        	}
        	}); 
    } 
} 